package pl.edu.agh.iosr.gamblingzone.adminpanel.action;

import java.util.Date;
import java.util.List;
import java.util.Map;

import javax.ejb.Local;

import org.richfaces.model.selection.SimpleSelection;

import pl.edu.agh.iosr.gamblingzone.model.AbstractEvent;
import pl.edu.agh.iosr.gamblingzone.model.Participant;

@Local
public interface EventsManage {

	public void init();
	public void remove();

	public List<AbstractEvent> getAll();
	public AbstractEvent getCurrentEvent();
	public void setCurrentEvent(AbstractEvent currentEvent);
	public List<Participant> getParticipants();
	public double getRate(Participant participant);
	public List<Participant> getTempEvent();
	public void setTempEvent(List<Participant> tempEvent);
	public String getTempProb();
	public void setTempProb(String tempProb);
	public Map<Participant, Double> getTempMap();
	public void setTempMap(Map<Participant, Double> tempMap);
	public void addToEvent(Participant participant);
	public String getProb(Participant participant);
	public void commitEvent();
	public void removeFromTemp(Participant participant);
	public void cancelEvent();
	public void setSelection(SimpleSelection selection);
	public SimpleSelection getSelection();
	public Date getClosingDate();
	public void setClosingDate(Date closingDate);
	public void setAsWinner(Participant participant);
}
